#!/usr/bin/env python
# -*- coding: utf-8 -*-
# class 사용 예제

class AAA:
	lastname = "홍"

	def __init__(self, name):
		self.fullname = self.lastname + name
		print "%s, 탄생하다" % self.fullname
	
	def travel(self, where):
		print "%s, %s로 여행가다" % (self.fullname, where)
	
	def love(self, other):
		print "%s, %s과 사랑에 빠지다" % (self.fullname, other.fullname)

	def __add__(self, other):
		print "%s, %s과 결혼하다" % (self.fullname, other.fullname)

	def __del__(self):
		print "%s, 생을 마감하다" % self.fullname


class BBB(AAA):
	lastname = "성"

	def traver(self, where, days):
		print "%s, %s로 %s일동안 여행가다" % (self.fullname, where, days)

man = AAA("길동")
woman = BBB("춘향")

man.love(woman)

man + woman

